package com.techfengs.test01;

/**
* TestOpr
*/
public class TestOpr {

	public static void main(String[] args) {
		// [1] 算术运算符
		// 加号：(1)表示正数  (2)表示相加操作  (3)字符串拼接
		System.out.println(+10);
		System.out.println(5 + 6);
		int num = 10;
		System.out.println("输出一个数" + num);
		System.out.println(5 + 6 + "abc");
		int a = 5;
		a++;
		System.out.println(a);
		a = 5;
		++a;
		System.out.println(a);

		// 如果自增参与到表达式中
		a = 5;
		int m = a++ + 7;
		System.out.println(a);
		System.out.println(m);

		a = 5;
		int n = ++a + 7;
		System.out.println(a);
		System.out.println(n);
	}
}
